﻿<Window x:Class="Berico.SnagL.ConfigurationEditor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SnagL™ Configuration Utility"
        Height="400"
        Width="500"
        DataContext="{Binding Main, Source={StaticResource Locator}}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Button x:Name="btnFileOpen" Grid.Row="0" Grid.Column="0" Command="{Binding OpenFileDialogCommand}">Open</Button>
        <Button x:Name="btnFileSave" Grid.Row="0" Grid.Column="1" Command="{Binding SaveCommand}" IsEnabled="{Binding SaveEnabled}">Save</Button>
        <TextBox Grid.Row="1" Grid.ColumnSpan="2" Text="{Binding DocumentContent}" IsEnabled="{Binding SaveEnabled}" AutoWordSelection="True" AcceptsReturn="True" AcceptsTab="True" />
    </Grid>
</Window>
